﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TourAgency.Admin.Create
{
    public partial class NewDestination : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void buttonAddDestination_Click(object sender, EventArgs e)
        {
            ToursAgencyDAL.Destination d = new ToursAgencyDAL.Destination();
            d.Name = this.textBoxName.Text;
            ToursAgencyDAL.ToursAgencyDataFuncs.CreateDestination(d);
            this.textBoxName.Text = "";
        }
    }
}